(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <intuition/classusr.h>
#include <proto/intuition.h>
APTR NewObject()
SYNOPSIS
struct IClass * classPtr
UBYTE * classID
ULONG tag1
...

FUNCTION
Use this function to create BOOPSI objects (BOOPSI stands for "Basic Object Oriented Programming System for Intuition).

You may specify a class either by it's name (if it's a public class) or by a pointer to its definition (if it's a private class). If classPtr is NULL, classID is used.

INPUTS
classPtr
Pointer to a private class (or a public class if you happen to have a pointer to it)
classID
Name of a public class
tagList
Initial attributes. Read the documentation of the class carefully to find out which attributes must be specified here and which can.
RESULT
A BOOPSI object which can be manipulated with general functions and which must be disposed with DisposeObject() later.

NOTES
This functions send OM_NEW to the dispatcher of the class.

EXAMPLE
BUGS
SEE ALSO
DisposeObject(), SetAttrs(), GetAttr(), MakeClass(), "Basic Object-Oriented Programming System for Intuition" and "boopsi Class Reference" Dokument.
INTERNALS
HISTORY
02.04.1997 ldp
AROSfA: enable functions, define NO_INLINE_STDARG to disable inline handling of said functions
27.01.1997 ldp
Include proto instead of clib
04.12.1996 aros
The macros AROS_SLOWSTACKTAGS and AROS_SLOWSTACKMETHODS now use AROS_TAGRETURNTYPE and AROS_METHODRETURNTYPE to create a variable called retval in which the use suplied part of the function must store the return value. If these types are not defined, then the types default to IPTR.
28.11.1996 aros
A couple of new functions in amiga.lib

Easier code to handle stacktags and stackmethods.

25.11.1996 aros
Allow stacktags on special CPUs
17.09.1996 digulla
Same names for same parameters
28.08.1996 digulla
First step to implement amiga.lib BOOPSI Utility functions